package com.sun.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sun.entity.SysRole;
import com.sun.mapper.SysRoleMapper;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhangquanwei
 * @version 1.0
 * @since 2025-03-07 16:06
 */
@Service
public class DemoDao extends ServiceImpl<SysRoleMapper, SysRole> {
    @Resource
    private SysRoleMapper sysRoleMapper;

    public List<SysRole> listA() {
        LambdaQueryWrapper<SysRole> wrapper = new LambdaQueryWrapper<>();
        return sysRoleMapper.selectList(wrapper);
    }

}
